package com.wondersgroup.retrofittest.login.model;
import com.hss.rxjava.ApiManager;
import com.hss.rxjava.MD5;
import com.hss.rxjava.bean.Login;
import com.hss.rxjava.result.ResultObject;
import com.wondersgroup.retrofittest.login.contract.ILoginContract;

import rx.Observable;

/**
* Created by Administrator on 2017/02/07
*/

public class LoginModelImpl implements ILoginContract.Model{


    @Override
    public  Observable<ResultObject<Login>> login(String name, String pwd) {
        return ApiManager.getInstance().getmApi().login(name, MD5.MD5add(MD5.MD5(pwd).toLowerCase()).toLowerCase(),1,0);

    }
}